package com.aabte.design.pattern.structural.proxy;

public class OrderServiceImpl implements IOrderService {

    private IOrderDao orderDao = new OrderDaoImpl();

    @Override
    public int saveOrder(Order order) {
        System.out.println("Service层调用Dao层添加Order");
        return orderDao.insertOrder(order);
    }
}
